<?php
/*
Template Name: Open Sourcerer
*/
?>
<div id="sidebar"><!-- Begin Sidebar -->
    <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>
		<div class="widget" id="search">
		    <div class="inside">
    			<?php get_search_form(); ?>
            </div>
        </div>
        <div class="widget">
            <div class="inside">
        		<ul>
	           		<?php wp_list_bookmarks(); ?>
		        </ul>
		    </div>
        </div>        
        <div class="widget" id="calendar">
            <div class="inside">
                <h3 class="widget-title">Calendar</h3>
                <?php get_calendar(); ?>            
			</div>
		</div>
		<?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?>
            <div class="widget" id="meta">
                <div class="inside">
                	<h3 class="widget-title">Meta</h3>
                	<ul>
            			<?php wp_register(); ?>
            			<li><?php wp_loginout(); ?></li>
            			<li><a href="<?php bloginfo('rss2_url'); ?>" title="<?php echo attribute_escape(__('Syndicate this site using RSS 2.0')); ?>"><?php _e('Entries <abbr title="Really Simple Syndication">RSS</abbr>'); ?></a></li>
            			<li><a href="<?php bloginfo('comments_rss2_url'); ?>" title="<?php echo attribute_escape(__('The latest comments to all posts in RSS')); ?>"><?php _e('Comments <abbr title="Really Simple Syndication">RSS</abbr>'); ?></a></li>
            			<li><a href="http://wordpress.org/" title="<?php echo attribute_escape(__('Powered by WordPress, state-of-the-art semantic personal publishing platform.')); ?>">WordPress.org</a></li>
            			<?php wp_meta(); ?>
			        </ul>
                </div>
            </div>
		<?php } ?>
    <?php endif; ?>
</div><!-- End Sidebar -->
